//
//  NetWorkManager.h
//  Go!
//
//  Created by rimi on 16/7/7.
//  Copyright © 2016年 凌风. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^Success)(id responseObject);
typedef void(^Failure)(NSError *error);

@interface NetWorkManager : NSObject

//关于网络请求需要的参数说明
//portUrl:问号前面的到斜杠的的接口
//urlParam:参数
//直接返回JOSN数据类型

+(void)getWithURL:(NSString *)portUrl
         urlParam:(NSDictionary *)urlParam
     successBlock:(Success)successblock
     FailureBlock:(Failure)failureblock;

@end
